#include "udp_server.hpp"

int main(int arge,char* argv[])
{
  if(arge!=2)
  {
    std::cerr << "Usage: " << argv[0] << " port" << std::endl;
        return 1;
  }

  std::string ip = "127.0.0.1"; //127.0.0.1 == localhost : 标识本主机 : 本地环回
  //int port=atoi(ip.c_str());
  int port=atoi(argv[1]);
  UdpServer* svr=new UdpServer(port);

  svr->Initudpserver();
  svr->start();
  return 0;
}
